﻿using System.Threading.Tasks;
using Jinjia.Approve.Model.Input.JJFlow;
using Jinjia.Approve.Model.VM;
using Jinjia.Core.BaseInfrastructure.BaseModel.BaseModel;
using Jinjia.Core.BaseInfrastructure.StorageModel.Model;

namespace Jinjia.Approve.IService.JJFlow
{
    public interface IJJFlowMappingService
    {
        /// <summary>
        /// 业务列表
        /// </summary>
        /// <param name="searchCondition"></param>
        /// <returns></returns>
        Task<PageListSearchResultVM<JJMappingViewModel>> GetMappingPageList(JJMappingSearchCondition searchCondition);

        /// <summary>
        /// 保存  更新  类型
        /// 类型编码唯一
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<ResponseResult<string>> SaveMapping(JJMappingEditModel model);
    }
}